* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #fff;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 600;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

/* UNDERLINE */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #5b6d5b;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* BUTTON */
.btn {
  background: #5b6d5b;
  color: white;
  padding: 10px 20px;
  border: none;
  transition: 0.3s;
  cursor: pointer;
}

.btn:hover {
  background: #3e4c3e;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  padding: 50px 80px;
  background: #0b0b0b;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* SHOW */
.menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* GRID */
.mega-container {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* CARD */
.menu-card {
  width: 200px;
  text-decoration: none;
  color: white;
  text-align: center;
  transition: 0.4s;
}

.menu-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease, filter 0.5s;
}

/* HOVER EFFECT */
.menu-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.menu-card span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 1px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ===================== */
/* 📱 MOBILE */
/* ===================== */
@media (max-width: 900px) {

  .navbar {
    padding: 15px 20px;
  }

  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    padding: 20px;
  }

  nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 20px;
  }

  .menu-item.active .mega-menu {
    display: block;
  }

  .mega-container {
    flex-direction: column;
    align-items: center;
  }

  .menu-card {
    width: 90%;
  }

  .btn {
    display: none;
  }
}

/* ========================= */
/* 🔥 MEGA MENU PREMIUM */
/* ========================= */

.has-mega {
    position: relative;
}

/* MEGA MENU CONTAINER */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #0b0b0b;
    padding: 40px 80px;

    display: flex;
    justify-content: center;
    gap: 30px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
}

/* SHOW ON HOVER */
.navigation-block ul li.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CARD */
.mega-card {
    width: 220px;
    text-decoration: none;
    color: white;
    text-align: center;
}

/* IMAGE */
.mega-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease, filter 0.5s;
}

/* HOVER EFFECT */
.mega-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.mega-card span {
    display: block;
    margin-top: 12px;
    font-size: 14px;
}

/* ========================= */
/* 📱 MOBILE FIX */
/* ========================= */

@media (max-width: 992px) {

    .mega-menu {
        position: static;
        display: none;
        flex-direction: column;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-mega.expanded .mega-menu {
        display: flex;
    }

    .mega-card {
        width: 100%;
    }
}

/* Dropdown trigger */
.open-dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Icon inside */
.open-dropdown i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Hover effect */
.navigation-block li:hover .open-dropdown i {
    transform: rotate(180deg);
}

/* Active (mobile click) */
li.expanded > a .open-dropdown i {
    transform: rotate(180deg);
}

/* Smooth feel */
.open-dropdown i {
    color: #666;
}

.navigation-block li:hover .open-dropdown i {
    color: #000;
}

/* ========================= */
/* 🔥 ARROW ROTATION SYNC */
/* ========================= */

/* Default */
.has-mega .open-dropdown i {
    transition: transform 0.3s ease;
}

/* Hover (Desktop) */
.has-mega:hover > a .open-dropdown i {
    transform: rotate(180deg);
}

/* Active (Mobile Click) */
.has-mega.expanded > a .open-dropdown i {
    transform: rotate(180deg);
}

/* ========================= */
/* 🔥 MEGA MENU */
/* ========================= */

.has-mega {
    position: relative;
}

/* invisible hover bridge */
.has-mega::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 100%;
    height: 20px;
}

/* MENU */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;

    background: #0b0b0b;
    padding: 40px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;

    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ACTIVE STATE */
.has-mega.hovered .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* CARD */
.mega-card {
    text-align: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.mega-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.mega-card:hover img {
    transform: scale(1.08);
}

.mega-card span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

/* ========================= */
/* 🔽 DROPDOWN ARROW */
/* ========================= */

.open-dropdown i {
    transition: transform 0.3s ease;
}

/* rotate arrow */
.has-mega.hovered > a .open-dropdown i,
.has-mega.expanded > a .open-dropdown i {
    transform: rotate(180deg);
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */

@media (max-width: 992px) {

    .mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .has-mega.expanded .mega-menu {
        display: grid;
    }
}